#ifndef __KEY_SCAN_H__
#define __KEY_SCAN_H__

#include "main.h"

#define  KEY1_STATUS   HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_4)  // PB4
#define  KEY2_STATUS   HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_0)  // PB3
#define  KEY3_STATUS   HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_0)  // PA0

#define  KEY1_PRESSED  1
#define  KEY2_PRESSED  2
#define  KEY3_PRESSED  3

int key_scan(void);

#endif

